package com.bulletelc.apollopre.module.main.center.address.list;

import com.bulletelc.apollopre.entity.AddressDetailBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/23
 * desc  : TODO
 */

public class AddressContract {

    interface View extends IView {
        void onSuccessAddressList(List<AddressDetailBean> addresses);
        void onFailAddressList(String fail);
        void onErrorAddressList(String error);

        void onSuccessDelete(int position);
        void onFailDelete(String fail);
        void onErrorDelete(String error);

        void onSuccessDefault();
        void onFailDefault(String fail);
        void onErrorDefault(String error);
    }

    interface Presenter extends IPresenter<View> {
        void getAddressList();

        void deleteAddress(int addressId,int position);

        void setDefaultAddress(int addressId);
    }


}
